﻿<div ng-controller="listCtrl">    
    @Html.Partial("_Filter")
    <table class="table table-striped table-hover ">
        <thead>
            <tr sort-header default-sort="sorting" sort-action="sortBy(sorting)">                
                <th scope="col" sort-column="Key" header='Name'></th>
                <th scope="col" sort-column="Value" header='Value'></th>
                <th scope="col">
                </th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in list">                
                <td ng-bind="item.Key"></td>                
                <td ng-bind="item.Value"></td>
                <td> <button ng-click="remove($index)" class="btn btn-default">Delete</button></td>
            </tr>
        </tbody>
    </table>
    <pagination total-items="itemsCount" ng-model="paging.currentPage" max-size="paging.linksSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items-per-page="paging.pageSize" ng-change="pageChanged()"></pagination>   
</div>